﻿using Grpc.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace gRPCDemo
{
    internal class ServerHelper
    {
        async Task StartGrpc()
        {
            var moduleService = new OpcPublish.Server();

            var grpcServer = new Server
            {
                Services = { OpcPublish.OpcPublisher.BindService(moduleService) },
                Ports = { new ServerPort("0.0.0.0", 9007, ServerCredentials.Insecure) }
            };
        }
    }
}
